<?php
	class HtmlGen extends Base {

		public static function div($id, $class, $header, $content, $footer) {
			Logger::debug("HtmlGen", "Criando div com id = $id");
			echo "\t\t\t<div id=\"$id\" class=\"$class\">\n";
			if( $header != null && $header != "" ) {
				echo "\t\t\t\t<div class=\"box_header\"> $header </div>\n";
			}
			echo "\t\t\t\t\t" . $content . "\n";
			if( $footer != null && $footer != "" ) {
				echo "\t\t\t\t<div class=\"box_footer\"> $footer </div>\n";
			}
			echo "\t\t\t</div>";
		}
	}
?>